#include <iostream>

using namespace std;

//函数名相同，根据参数（个数、类型）判断
int sum(int x, int y)
{
    int sum;
    sum = x*x + y*y;
    return sum;
}

double sum(double m, double n)
{
    double sum;
    sum = m*m + n*n;
    return sum;
}

int main()
{
    int x,y;
    cout << "Please input numbers : " ;
    cin >> x >> y;
    cout << "Their sum of square : " << sum(x,y) << endl;

    double m,n;
    cout << "Please input numbers : " ;
    cin >> m >> n;
    cout << "Their sum of square : " << sum(m,n) << endl;

    return 0;
}
